<?php



class ValoracionXVideoMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.ValoracionXVideoMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('valoracion_x_video');
		$tMap->setPhpName('ValoracionXVideo');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addForeignKey('USUARIO_ID', 'UsuarioId', 'int', CreoleTypes::INTEGER, 'usuario', 'ID', true, null);

		$tMap->addForeignKey('VIDEO_ID', 'VideoId', 'int', CreoleTypes::INTEGER, 'video', 'ID', true, null);

		$tMap->addColumn('NOTA', 'Nota', 'int', CreoleTypes::TINYINT, false, null);

		$tMap->addColumn('VALORACION', 'Valoracion', 'string', CreoleTypes::VARCHAR, false, 255);

	} 
} 